<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>创建订单</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">订单填写</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper ucenter" style="overflow: hidden">
    <form method="post" action="">
        <input type="hidden" class="flightNo" value="{$flightNo}">
        <input type="hidden" class="depCode" value="{$orgCity}">
        <input type="hidden" class="arrCode" value="{$dstCity}">
        <input type="hidden" class="depDate" value="{$date}">
        <input type="hidden" class="depTime" value="{$depTime}">
        <input type="hidden" class="arrTime" value="{$arriTime}">
        <input type="hidden" class="planeModel" value="{$planeModel}">
        <input type='hidden' class='seatCode' value='{$seatCode}'>
        <input type="hidden" class="airportTax" value="{$airportTax}">
        <input type="hidden" class="orgJetquay" value="{$orgJetquay}">
        <input type="hidden" class="dstJetquay" value="{$dstJetquay}">
        <input type="hidden" class="arrDate" value="{$arrDate}">
        <input type="hidden" class="passengerIds" value="{$passengerIds}">

        <input type="hidden" class="parPrice" value="{$parPrice}">
        <input type="hidden" class="settlePrice" value="{$settlePrice}">
        <input type="hidden" class="airportTax" value="{$airportTax}">
        <input type="hidden" class="fuelTax" value="{$fuelTax}">
        <input type="hidden" class="policyId" value="{$policyId}">
        <input type="hidden" class="type" value="{$type}">

        <input type="hidden" class="flightOrderCreate" value="{$Think.session.flightOrderCreate}">
        <input type="hidden" class="submitUrl" value="{:U('Flight/orderCreate')}">
        <input type="hidden" class="detailUrl" value="{:U('Flight/orderDetail')}">
        <input type="hidden" class="addPassengerUrl" value="{:U('Flight/addPassengers')}">
        <input type="hidden" class="delId" value="">

        <p></p>

        <div class="row flight-row-s1 flight-create-top">
            <table style="width: 100%">
                <tr>
                    <td width="25%" style="padding-left: 10px;" class="text-left">{$date}</td>
                    <td width="70%" class="text-right" style="padding-right: 5px">{$flightNo|substr=0,2|nameToAirLine}
                        {$flightNo} | {$planeModel}
                    </td>
                </tr>
            </table>
        </div>

        <table style="width: 100%;line-height: 30px;">
            <tr>
                <td width="40%" class="text-left">
                    <span style="margin-left: 10px;">{$orgCity|codeToAirport} </span>
                </td>
                <td width="20%"><img src="http://cdn.lydlr.com/public/images/flight/ticket_10.png" width="70%"></td>
                <td width="40%" class="text-right">
                    <span style="margin-right: 10px;">{$dstCity|codeToAirport} </span>
                </td>
            </tr>
            <tr>
                <td width="40%">
                    <if condition="$orgCity eq 'NAY'">
                        <span style="margin-left: 10px;">南苑机场 </span>
                        <elseif condition="$orgCity eq 'PVG'"/>
                        <span style="margin-left: 10px;">浦东机场 </span>
                        <else/>
                        <span style="margin-left: 10px;">{$orgCity|nameToAirport} </span>
                    </if>
                    <if condition="($orgJetquay eq 'Array') or ($orgJetquay eq '--')">
                        <else/>
                        {$orgJetquay}
                    </if>
                </td>
                <td width="5%"></td>
                <td width="40%" class="text-right">
                    <if condition="$dstCity eq 'NAY'">
                        南苑机场
                        <elseif condition="$dstCity eq 'PVG'"/>
                        浦东机场
                        <else/>
                        {$dstCity|nameToAirport}
                    </if>
                    <if condition="($dstJetquay eq 'Array') or ($dstJetquay eq '--')">
                        <else/>
                        <span style="margin-right: 10px;">{$dstJetquay}</span>
                    </if>
                </td>
            </tr>
            <tr>
                <td width="40%" class="text-left">
                    <span style="margin-left: 10px;">{$depTime|returnTime}</span>
                </td>
                <td width="20%"></td>
                <td width="40%" class="text-right">
                    <span style="margin-right: 10px;">{$arriTime|returnTime}</span>
                </td>
            </tr>
        </table>
        <p></p>

        <div class="flight-list-border--dashed-bottom"></div>

        <table class="table">
            <if condition="$needSwitchPNR eq 1">
                <tr>
                    <td width="20%" style="color:red;border:0;">*</td>
                </tr>
            </if>
            <tr>
                <td width="20%">类型</td>
                <td width="20%">单人总价</td>
                <td width="20%">结算价</td>
                <td width="20%">燃油税</td>
                <td width="20%">基建费</td>
            </tr>
            <tr>
                <td width="20%">成人</td>
                <td width="20%"><span class="flight-text-c2">&yen;<span class="adultTotal">{$totalPrice|getYuan}</span></span></td>
                <td width="20%"><span class="flight-text-c2">&yen;{$settlePrice|getYuan}</span></td>
                <td width="20%"><span class="flight-text-c2">&yen;{$fuelTax|getYuan}</span></td>
                <td width="20%"><span class="flight-text-c2">&yen;{$airportTax|getYuan}</span></td>
            </tr>
        </table>


        <div class="row flight-create-flighter">
             
            <div class="col-xs-11 text-left flight-text-c4">&nbsp;&nbsp;乘机人信息</div>
        </div>


        <p></p>

        <div class="flight-list-border-bottom" style="border:none"></div>

        <input type="hidden" class="totalPrice" value="{$totalPrice|getYuan}">
        <input type="hidden" class="seatCode" value="{$seatCode}">

        <div class="row">
            <div class="col-xs-11 text-right">
                <input type="button" class="btn btn-success addPassenger" value="添加乘机人">
            </div>
        </div>
        <br>

        <foreach name="passengerList" item="vo">
            <table class="table table-bordered table{$vo.id}">
                <tr>
                    <td width="20%">乘客姓名</td>
                    <td>{$vo.passenger_name}</td>
                </tr>
                <tr>
                    <td width="20%">乘客类型</td>
                    <td>
                        <if condition="$vo['passenger_type'] eq 0">成人
                            <elseif condition="$vo['passenger_type'] eq 1"/>
                            儿童
                        </if>
                    </td>
                </tr>
                <tr>
                    <td>证件号码</td>
                    <td>{$vo.identity_no}</td>
                </tr>
                <tr>
                    <td style="height:40px;line-height: 40px;">证件类型</td>
                    <td style="height:40px;line-height: 40px;">
                        <if condition="$vo['identity_type'] eq 1">
                            身份证
                            <elseif condition="$vo['identity_type'] eq 2"/>
                            护照
                            <elseif condition="$vo['identity_type'] eq 3"/>
                            军官证
                            <elseif condition="$vo['identity_type'] eq 4"/>
                            士兵证
                            <elseif condition="$vo['identity_type'] eq 5"/>
                            台胞证
                            <elseif condition="$vo['identity_type'] eq 6"/>
                            港澳通行证
                        </if>
                        <input type="button" class="btn btn-danger pull-right delPassenger" onclick="deletePassenger({$vo.id}, {$vo.passenger_type})" value="删除">
                    </td>
                </tr>
            </table>
        </foreach>


        <div class="row">
             
            <div class="col-xs-12 text-left flight-text-c4 flight-create-flighter">&nbsp;&nbsp;联系人信息</div>
        </div>

        <p></p>

        <div class="form-inline preorder">
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon pt border-none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓&nbsp;名:</div>
                    <input type="text" style="width:80%" class="form-control nb linkMan"
                           placeholder="请填写您的真实姓名"/>
                </div>
            </div>
        </div>


        <p></p>

        <div class="flight-list-border-bottom"></div>


        <div class="form-inline preorder">
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon pt border-none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手&nbsp;机:</div>
                    <input type="number" style="width:80%" class="form-control nb linkPhone"
                           placeholder="请填写手机号"/>
                </div>
            </div>
        </div>


        <div class="form-inline preorder">
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon pt border-none">(该手机号会收到出票通知)</div>
                </div>
            </div>
        </div>

        <p></p>

        <div class="flight-list-b3">
            &nbsp;
        </div>
        <p></p>

        <div class="row flight-create-button">
             
            <div class="col-xs-6 text-left">&nbsp;&nbsp;订单总额:&nbsp;<span class="flight-text-c2">&yen; <span class="ordertotal">{$totalPrice * $passengerNum|getYuan}</span></span>
            </div>
            <div class="col-xs-5 text-right" style="padding:0;margin:0;">
                <input type="button" class="btn btn-warning showSub submitOrder" value="提交订单">

                <div id="showDiv"></div>
                <div class="showLoad text-left" style="display:none">
                    <img src="http://cdn.lydlr.com/public/images/load.gif"> <span style="color: #c6c6c6">亲,您的订单正在提交,请勿关闭订单</span>
                </div>
            </div>
        </div>

    </form>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title text-center" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning dia-confirm" data-dismiss="modal" aria-label="Close">确认</button>
                </div>
            </div>
        </div>
    </div>
    <footer class="footer">
        <include file="Template/foot"/>
        <script src="__PUBLIC__/js/flightOrderInfo.js?v=76"></script>
    </footer>
</div>
</body>
</html>
